#!/usr/bin/env python3
#coding=utf-8


import argparse
import os
import sys

import kconfiglib


def write_header():
    print("write_header")

def write_cmake():
    print("write_cmake")

OUTPUT_FORMATS = {"header": write_header,
                  "cmake": write_cmake,
                  }



def main():
    # 创建命令解析
    parser = argparse.ArgumentParser(description='sky_genconfig')

    # 解析配置文件
    # 解析获取文件路径
    parser.add_argument(
        "--config-file",
        metavar="CONFIG_FILE",
        help="""
            config file
        """)
    # 解析获取文件路径
    parser.add_argument(
        "--header-path",
        metavar="HEADER_PATH",
        help="""
            header file path
        """)
    # 解析获取文件名称
    parser.add_argument(
        "--header-name",
        metavar="HEADER_NAME",
        help="""
            header file name
        """)
   # 参数获得
    args = parser.parse_args()
    # 调试打印
    print(args.config_file)
    print(args.header_path)
    print(args.header_name)




# 程序入口
if __name__ == "__main__":
    main()